<?
require_once('../mod_config.php');

$moduol_name = 'Category';
class Cate{
   public static function getListCat($limit = ''){
      
      if($limit != ''){
         $limit = ' LIMIT ' . $limit;
      }
      $arr = array();
      $sql_select = "SELECT 
                           cat_id,
                           cat_name
                     FROM
                           category
                     " . $limit;
      $db_select = new db_query($sql_select);
      
      $arr = $db_select->resultArray('cat_id');
      unset($db_select);
      return $arr;
   }
}
?>